<%-- 
    Document   : add_accounts
    Created on : Oct 11, 2012, 3:28:36 PM
    Author     : hasnor
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            function del(akaun)
            {
               if (confirm('Adakah anda pasti?')) {
                    var frm = document.forms.form1;
                    frm.action = frm.action+'?deleteAkaun&noAkaun=' + akaun;
                    frm.submit();
               }                
            }            
         
        </script>
    </head>
    <body>
        <s:form beanclass="th.stripes.action.DepositActionBean" class="niceform" name="form1">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>Tambah Akaun Di Bawah Jagaan/Pelaburan IPD-KWSP</h3>                                            
                <p>                    
                    
                    <display:table name="${actionBean.accountList}" class="tablecloth" id="row" style="width:600px">
                        <display:column title="No" sortable="true">${row_rowNum}</display:column>
                        <display:column property="akaunTmbhn" title="No. Akaun" />
                        <display:column property="namaAkaunTmbhn" title="Nama" />
                        <display:column property="noPengenalanTmbhn" title="No. KP Semasa" />
                        <display:column title="Padam">
                            <c:if test="${!fn:contains(row.akaunUtama, 'Y')}">
                                <img src="${pageContext.request.contextPath}/images/delete.gif" onclick="del('${row.akaunTmbhn}');" alt="padam akaun" class="button_blockUI" style="cursor: pointer"/>                             
                            </c:if>
                        </display:column>
                    </display:table>
                </p>
                <p align="center">                                        
                        <s:submit name="showDetailForm" value="Tambah Akaun" class="button green button_blockUI"/>                   
                </p>
            </div>
        </s:form>
    </body>
</html>
